package ooday01;

public class StudentTest {
    public static void main(String[] args) {
        //创建一个学生对象,调一个无参的方法
        Student zs = new Student();
        zs.name = "张三";
        zs.age = 25;
        zs.className = "jsd2302";
        zs.stuId = "001";
        zs.study();
        zs.sayHi();
        zs.palyWith("李四");


//引用类型默认值为null
        Student ls = new Student();
        ls.name = "李四";
        ls.age = 88;
        ls.className = "开炮班";
        ls.stuId = "78952";
        ls.sayHi();
        ls.study();
        ls.palyWith("李云龙");


        Student ww = new Student();
        ww.study();
        ww.sayHi();
        ww.palyWith("李云龙");
        //引用类型默认值为null

        Car cf = new Car("坦克", "粉色", 5000000.0);
        cf.run();
        cf.start();
        cf.stop();
    }
}
